VT-d: adjust IOMMU interrupt affinities when all CPUs are online
authorJan Beulich <jbeulich@suse.com>
Wed, 28 Nov 2012 09:08:24 +0000 (10:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 28 Nov 2012 09:08:24 +0000 (10:08 +0100)
commitd9d2cfd5aeb47d5b057d661b9c3ef2e8e980c7f0
tree11c90d02702fe879b5b29af640a552dd765e5703
parent899110e3f6d2a191638e8b50a981c551eeec49e6
VT-d: adjust IOMMU interrupt affinities when all CPUs are online

Since these interrupts get setup before APs get brought online, their
affinities naturally could only ever point to CPU 0 alone so far.
Adjust this to include potentially multiple CPUs in the target mask
(when running in one of the cluster modes), and take into account NUMA
information (to handle the interrupts on a CPU on the node where the
respective IOMMU is).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/acpi/power.c
xen/drivers/passthrough/vtd/iommu.c
xen/include/xen/iommu.h